package com.peter.design.pattern.proxy.staticproxy;

import com.peter.design.pattern.proxy.Person;

/**
 * @Auther: 肖冬
 * @Date: 2020/7/26 19:44
 * @Description:
 */
public class Father implements Person {

    private Son person;

    public Father(Son person) {
        this.person = person;
    }

    @Override
    public void findLove() {
        System.out.println("父亲物色对象");
        this.person.findLove();
        System.out.println("双方父母同意，确立关系");
    }
}
